//
//  SDBusinessDefine.h
//  SKinDiary
//
//  Created by pcyang on 16/6/26.
//  Copyright © 2016年 tencent. All rights reserved.
//

#ifndef SDBusinessDefine_h
#define SDBusinessDefine_h

//正式发布时打开
//#define kBuildAppForAppStore        // 发布到线上appStore的包


#define kAppVersionCode         20    //versioncode 是个整形，每次发布大版本都+10，中间的值留作rdm备用

//正式发布一定要改成0
#define SERVER_TYPE  0  //0:发布环境 1:预发布环境 2:测试环境

#define kAppChannelID       @"100"//===渠道id ?

#define DefaultBundle       @"Default.bundle"
#define HomePageBundle      @"HomePage.bundle"
#define SettingsPageBundle      @"Setting.bundle"

#define getShowString(str)  (([str isKindOfClass:[NSString class]]&&((NSString*)str).length>0) ? str:@"")
#define RGBA(r,g,b,a)       [UIColor colorWithRed:r/255.f green:g/255.f blue:b/255.f alpha:a]
#define RGB(r,g,b)          RGBA(r,g,b,1.f)

#define kViewScaleParam     (kScreenWidth/320.f)

#define kBackgroundControlTag 1322545
#define kVerifyPicWidth 90 // 100
#define kVerifyPicHeight 36 // 40
#define kLoginButtonLoadingTag 429204
#define kTableCellSmallMargin 6.0f

#define kDidAddBlankPageSubviewNotification  @"kDidAddBlankPageSubviewNotification"

#define kLoginDidStartNotificaion @"kLoginDidStartNotificaion"
#define kLoginMgrDidSucceedNotificaion @"kLoginMgrDidSucceedNotificaion"
#define kLoginServiceDidLogOutNotification @"kLoginServiceDidLogOutNotification"
#define kLoginServiceeDidFailNotification  @"kLoginServiceDidLogOutNotification"

#define kRegisterDidSucceedNotification @"kRegisterDidSucceedNotification"
#define kRegisterDidFailNotification  @"kRegisterDidFailNotification"

#define kSipLoginNotificaion @"kSipLoginNotificaion"

#define kAddNewPaientSuccessNotification @"kAddNewPaientSuccessNotification"

#define ColorAllViewsBackground      0xffffff

#define kNoNetWorkTipWord @"网络不给力，请稍后重试"

#define kPaientTableName @"paient"
#define kPhotoTableName @"photo"

#define kAvatarDirectoryName @"avatar"
#define kPhotoDiretoryName @"photos"

#define kMiddlePhotoWidth 160 
#define kMiddlePhotoHeight kMiddlePhotoWidth

#define kPhotoViewWidth 78
#define kPhotoViewHeight 78

#define kAvatarViewWidth 70.f
#define kAvatarViewHeight 70.f

#endif /* SDBusinessDefine_h */
